entry: Stop being activatable
authorBenjamin Otte <otte@redhat.com>
Mon, 9 Apr 2018 12:45:04 +0000 (14:45 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 9 Apr 2018 18:20:55 +0000 (20:20 +0200)
Activating entries does not do anything.

Activate the default widget instead.

gtk/gtkentry.c

index 098c5bd53a2e6e697d5935d01d0b4715fbfaa337..d0050118930858528709f30f9f162d52a28b040b 100644 (file)
@@ -1448,11 +1448,6 @@ gtk_entry_class_init (GtkEntryClass *class)
    * The ::activate signal is emitted when the user hits
    * the Enter key.
    *
-   * While this signal is used as a
-   * [keybinding signal][GtkBindingSignal],
-   * it is also commonly used by applications to intercept
-   * activation of entries.
-   *
    * The default bindings for this signal are all forms of the Enter key.
    */
   signals[ACTIVATE] =
@@ -1463,7 +1458,6 @@ gtk_entry_class_init (GtkEntryClass *class)
                  NULL, NULL,
                  NULL,
                  G_TYPE_NONE, 0);
-  widget_class->activate_signal = signals[ACTIVATE];
 
   /**
    * GtkEntry::move-cursor: